import { createRequest } from '@/request'
import { formData } from '@/request/common'


// 教师端 查询某个项目下全部的学生（分页）
export const myProjectStudentPage = data => {
  return createRequest({
    url: `/teacher/project-team/myProjectStudentPage`,
    method: 'get',
    params: data
  })
}

// 教师强制移除审核通过的小组成员
export const teacherRemove = data => {
  return createRequest({
    url: `/teacher/project-team/teacherRemove`,
    method: 'post',
		data: formData(data)
  })
}

// 教师强制添加未入组的学生入组
export const teacherAddStudent = data => {
  return createRequest({
    url: `/teacher/project-team/teacherAddStudent`,
    method: 'post',
		data: formData(data)
  })
}

// 根据项目id查询岗位信息
export const findProjectJobs = projectId => {
  return createRequest({
    url: `/teacher/project-job/findProjectJobs/${projectId}`,
    method: 'get',
  })
}


// 查找学生
export const studentCheck = data => {
  return createRequest({
    url: `/teacher/project-team/studentCheck`,
    method: 'get',
		params: data
  })
}

// 教师编辑学生小组或岗位
export const teacherEditStudent = data => {
  return createRequest({
    url: `/teacher/project-team/teacherEditStudent`,
    method: 'post',
		data: formData(data)
  })
}

// 查询学生报名情况
export const studentSignedProject = data => {
  return createRequest({
    url: `/teacher/project-team/studentSignedProject`,
    method: 'get',
		params: data
  })
}
